package org.bluedream.core.module.liandi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.bluedream.comm.base.OrgPageEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Member
 * @Description TODO
 * @Author Administrator
 * @Data 2021/12/16 8:47
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_mms_member")
public class Member implements Serializable {
    private static final long serialVersionUID = 4608328722138754181L;

    private String cardNo;
    private String name;
    private String nickName;
    private String phone;
    private String point;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @TableField(exist = false)
    private Long limit;
    @TableField(exist = false)
    private Long page;


    public Member(Long limit , Long pageSize) {
        this.limit = limit;
        this.page = pageSize;
    }
}